<?php

namespace App\Http\Controllers\Home;

use App\Models\Member;
use App\Models\Roomcategroy;
use App\Models\Roomnum;

class CmsController extends BaseController
{

    public function __construct(Member $member)
    {
        parent::__construct();
        $this->member = $member;
    }

    /**
     * 首页
     */
    public function getIndex(){
        // 获取首页推荐分类
        $user = $this->member->userInit();
        return view('Home.home.cms',compact('user'));
    }

    /**
     * 文章内容
     */
    public function getArticle(){
         // 获取首页推荐分类
        $user = $this->member->userInit();
        return view('Home.home.cms_article',compact('user'));
    }

}